<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="wuyang">
    <meta name="author" content="wuyang">
    <link rel="icon" href="/static/dashboard/image/favicon.ico">
    <!-- Bootstrap core CSS -->
    <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/static/dashboard/css/dashboard.css" rel="stylesheet">
    <link href="/static/dashboard/css/sticky-footer-navbar.css" rel="stylesheet">
    {% block css %}

    {% endblock%}
</head>
<body>
<!--头部导航-->
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{% url 'index' %}">easy-issue</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">
                    {% if user.is_authenticated %}
                        {{ user.username }}
                    {% else %}
                        游客
                    {% endif %}</a></li>
                <li><a href="{% url 'login_out'%}">退出</a></li>
            </ul>
            <!--<form class="navbar-form navbar-right">-->
            <!--<input type="text" class="form-control" placeholder="Search...">-->
            <!--</form>-->
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <!--左侧菜单  -->
        <div class="col-sm-3 col-md-2 sidebar">
            {% block navbar %}
            {% include "public/default_menu.html" %}
            {% endblock %}
        </div>
        <!--正文部分  -->
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            {% block body %}

            {% endblock %}
        </div>
    </div>
</div>
<!--底部导航-->
<footer class="footer text-center" >
    <div class="container">
        <p class="text-muted">Copyright©2013-2017 wuyang All Rights Reserved</p>
    </div>
</footer>


{% block js %}
{% endblock %}
</body>
</html>